Skip to content

main: check-restricted-files.yaml reports ok for intra-repo PRs that are allowed to change these files #4409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 9, 2025

Conversation

ralfhandl
Copy link
Contributor

Fixes #3432

Check in the workflow whether the PR is an intra-repo "sync PR" or "release PR" and report "ok" for these.

Conditions are

  • PR's head and base repository is OAI/OpenAPI-Specification and
    • head is main and base is dev, or
    • head is dev and base matches v?.?-dev, or
    • head matches v?.?.?-rel and base is main

Tick one of the following options:

  • schema changes are included in this pull request
  • schema changes are needed for this pull request but not done yet
  • no schema changes are needed for this pull request

Check in the whether the PR is an intra-repo sync PR or release PR and report "ok" for these.

Conditions:
- PR's `head` and `base` repo is `OAI/OpenAPI-Specification` and
  - `head` is `main` and `base` is `dev`, or
  - `head` is `dev` and `base` matches `v?.?-dev`, or
  - `head` matches `v?.?.?-rel` and `base` is `main`
Copy link
Contributor

@miqui miqui left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ralfhandl looks good to me on all 3 scenarios.

@miqui miqui merged commit f3c113a into main Mar 9, 2025
8 checks passed
@miqui miqui deleted the main-check-restricted-files-and-allow-some-PRs branch March 9, 2025 15:46
@OAI OAI deleted a comment from Uwawa19 Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add automation to prevent PRs from changing specification files that need to be immutable.
2 participants